using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using FluentNHibernate.Mapping;
using Thaire.Investment.Domains.Transaction;
namespace Thaire.Investment.Repository.Mapping
{
       
    class   DepositInstructionDetailMap : ClassMap<DepositInstructionDetail>
    {

        public DepositInstructionDetailMap()
            {
                Table("DEPOSIT_INSTRUCTION_DETAIL");
                Id(x => x.DepositInstructionDetailID,"DEPOSIT_INSTRUCTION_DETAIL_ID").GeneratedBy.Identity();

                Map(x => x.InstructionHeaderID,"INSTRUCTION_HEADER_ID");
 Map(x => x.InstrumentHeaderID,"INSTRUMENT_HEADER_ID");
 Map(x => x.InstrumentTransactionID,"INSTRUMENT_TRANSACTION_ID");
 Map(x => x.InstructionTransactionType,"INSTRUCTION_TRANSACTION_TYPE");
 Map(x => x.InstructionBankName,"INSTRUCTION_BANK_NAME");
 Map(x => x.InstructionBranchName,"INSTRUCTION_BRANCH_NAME");
 Map(x => x.InstructionTerm,"INSTRUCTION_TERM");
 Map(x => x.InstructionInterestRate,"INSTRUCTION_INTEREST_RATE");
 Map(x => x.InstructionAmount,"INSTRUCTION_AMOUNT");
 Map(x => x.InstructionSettlementDate,"INSTRUCTION_SETTLEMENT_DATE");
 Map(x => x.InstructionTradeDate,"INSTRUCTION_TRADE_DATE");
 Map(x => x.InstructionMaturityDate,"INSTRUCTION_MATURITY_DATE");
 Map(x => x.InstructionTypeofpayment,"INSTRUCTION_TYPEOFPAYMENT");
 Map(x => x.InstructionRefNO,"INSTRUCTION_REF_NO");
 Map(x => x.InstructionAccountVoucerNO,"INSTRUCTION_ACCOUNT_VOUCER_NO");
 Map(x => x.CreateDate,"CREATE_DATE");
 Map(x => x.CreateBY,"CREATE_BY");
 Map(x => x.ModifyDate,"MODIFY_DATE");
 Map(x => x.ModifyBY,"MODIFY_BY");
 Map(x => x.Guarantor,"GUARANTOR");

            }


    }

}